GDK W32: Fix bounding rect calculation on window creation The bounding rect specifies...
authorJeremy Tan <jtanx@outlook.com>
Wed, 13 Apr 2016 13:39:46 +0000 (21:39 +0800)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Wed, 13 Apr 2016 14:15:36 +0000 (14:15 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=764996

gdk/win32/gdkwindow-win32.c

index c304912a4b57525700d387a68e306ecacfe72b81..9815199b0c8e5834f9fb042308fe97f5ce06c4dd 100644 (file)
@@ -817,8 +817,8 @@ _gdk_win32_display_create_window_impl (GdkDisplay    *display,
     {
       rect.left = window->x;
       rect.top = window->y;
-      rect.right = window->width;
-      rect.bottom = window->height;
+      rect.right = window->width + window->x;
+      rect.bottom = window->height + window->y;
 
       AdjustWindowRectEx (&rect, dwStyle, FALSE, dwExStyle);